<div class="form-group">
    <?php echo CHtml::link('Create user',Yii::app()->createUrl('user/create'), array('class' => 'btn btn-primary')); ?>
</div>
<div class="table-responsive">
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
    'summaryText' => 'Showing you {start} - {end} of {count} users',
    'cssFile' => Yii::app()->params['static_file'].'/css/grid.css',
    'itemsCssClass' => 'table table-bordered',
    'htmlOptions' => array(),
	'columns'=>array(
		'user_id',
		'user_name',
		'user_email',
//		'user_password',
//		'user_status',
//		'user_approved',
		/*
		'user_nickname',
		'user_sex',
		'user_address',
		'user_tel',
		'user_data_added',
		'user_data_modified',
		*/
		array(
            'header' => 'Actions',
			'class'=>'CButtonColumn',
            'viewButtonOptions'=>array(
                'data-toggle'=>'modal',
                'data-target'=>'#modal',
            )
		),
	),
)); ?>
</div>
<!-- Modal -->
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body"></div>

        </div><!-- /.modal-content -->

    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->